// pages/please/please.js
var app = getApp()
var util = require('../../utils/util.js');
var activityService = require('../../services/activityService.js');
Page({
  data:{
    info:[]
  },
  onLoad:function(options){
    this.setData({
      notes_id : options.mid
    })
  },
  onReady:function(){
    // 页面渲染完成
  },
  onShow:function(){
    this.getNotesDetail();
  },
  onHide:function(){
    // 页面隐藏
  },
  onUnload:function(){
    // 页面关闭
  },
  getNotesDetail:function(){
    var that = this;
    activityService.getNotesDetail({
      note_id: that.data.notes_id,
      user_id: app.globalData.apiUser,
      success:function(res){
        that.setData({
          info:res
        })
      }
    })
  },
  backTopPrevNavigate: function () {
    wx.navigateBack()
  }
})